<form method="post" action="?q=user/edit/{$user->getId()}">
{if $user->getId() eq $session_id}
<table>
	<tr>
		<td>Név:</td>
		<td><input type="text" name="name" value="{$user->GetName()}"/></td>
		{if $error[2] neq NULL}<td><font color="red">{$error[2]}</font></td>{/if}
	</tr>	
	<tr>	
		<td>Username:</td>
		<td><input type="text" name="username" value="{$user->GetUsername()}"/></td>
		{if $error[0] neq NULL}<td><font color="red">{$error[0]}</font></td>{/if}
	</tr>
	<tr>	
		<td>E-mail</td>
		<td><input type="text" name="email" value="{$user->GetEmail()}"/></td>
		{if $error[1] neq NULL}<td><font color="red">{$error[1]}</font></td>{/if}
	</tr>
	<tr>
		<td>Születési idő:</td>
		<td><input onclick="ds_sh(this);" name="birthdate" readonly="readonly" style="cursor: text; border: black 1px solid;" value="{$user->GetBirthdate()}"/>
		{if $error[6] neq NULL}<td><font color="red">{$error[6]}</font></td>{/if}
	</tr>
	<tr>
		<td>Iskola:</td>
		<td><input type="text" name="school" value="{$user->GetSchool()}"/></td>
		{if $error[4] neq NULL}<td><font color="red">{$error[4]}</font></td>{/if}
	</tr>
	<tr>
		<td>Évfolyam:</td>
		<td><input type="text" name="classyear" value="{$user->GetClassyear()}"/></td>
		{if $error[5] neq NULL}<td><font color="red">{$error[5]}</font></td>{/if}
	</tr>
	<tr>	
		<td>Magamról:</td>
	</tr>
</table>
<textarea name="info">{$user->GetInfo()}</textarea>
<input type="submit" name="update" value="Módosítás" />
<a href="?q=user/show/{$user->GetId()}">Vissza</a>
</form>
{else}
<center>
<h1>Ehhez nincs jogosultságod!</h1><br />
</center>
{/if}